Skip to content

Retain checkpoints across later snapshots until their prefixes are cut - #158

Merged
joelteply merged 8 commits into
fable/persona-files-on-157from
codex/resident-checkpoint-lineage
Nov 20, 2026
Merged

joelteply merged 8 commits into
fable/persona-files-on-157from
codex/resident-checkpoint-lineage

Conversation

@joelteply

Copy link
Copy Markdown

A later view snapshot used to invalidate an earlier head snapshot through a single per-lineage serial. Each checkpoint now owns a position receipt. The cells carry weak references across stream swaps and revoke the affected positions on a cut. All allocation happens during preparation.

The M5 hybrid fixture rewound to the earlier head, rewrote the suffix, refused the stale view, and accepted the new checkpoint. It passed on 6 attention and 24 recurrent layers. The same deployed artifact returned to serving after replay.

Across adjacent candidate versions, each observed for exactly 900 seconds with four residents, rewind refusals fell from 6 to 0. The new window had 41 rewinds and 2 divergence restarts. Wall throughput rose from 9.77 to 14.00 tokens/s, decode from 33.50 to 33.05, and reuse from 54.8% to 77.0%. The context window also grew. Empty outputs rose from 17 to 29, and durable adoption remains unverified. Please review lineage, cut invalidation and receipt lifetime at the exact head.

@joelteply

Copy link
Copy Markdown
Author

Exact-head review of 91f36f6 found a checkpoint validity defect in native sliding-window overwrite. apply_ubatch removes an occupied cell directly. When replacing the oldest contiguous positions, the later seq_rm purge can be skipped, so the earlier checkpoint can still appear valid after its KV is gone. Hold this merge pending a fix and fault replay.

Placement also simulates apply_ubatch during prepare and restores only selected cell metadata. Revoke receipts for committed loss and preserve them when a simulated placement rolls back. Cover both cases and successful reuse of an unaffected checkpoint.

@joelteply
joelteply merged commit 69313b2 into fable/persona-files-on-157 Nov 20, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant